package com.cloudkinto.service.user.vo;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * @author zhangyy
 * @date 2020/5/27 16:55
 * @description:
 */
@Data
public class UpdatePasswordReq {

    private Long id;

    @NotBlank(message = "pls.input.original.password")
    private String password;

    @NotBlank(message = "pls.input.new.password")
    @Length(min = 6,max = 20 ,message = "password.length.1-20")
    private String newPassword;

    @NotBlank(message = "pls.input.new.password.again")
    @Length(min = 6,max = 20 ,message = "password.length.1-20")
    private String newPasswordAgain;
}
